Spring boot 踩坑记录

打包

[TOC]

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.432 s <<< FAILURE! - in com.ems.web.WebApplicationTests

解决方案

在pom.xml中添加

1
2
3
4
5
6
7
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

————————————————
版权声明:本文为CSDN博主「漫跑的小乌龟」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/HHHbetter123/java/article/details/78561642


打包后target目录找不到


Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) on project commons-base: Failed to install artifact com.xxx:commons-base:jar:

使用Lifecycle下的 install打包即可


Mybatis-plus

Could not set property ‘id’ of ‘class com.xxx.xxx.xx.PO’ with value ‘1312434545453’